// 模型切换功能
function changeModel() {
    // 获取选择的模型
    const selectedModel = document.getElementById('language-model').value;

    // 隐藏所有模型内容
    const modelContents = document.querySelectorAll('.model-content');
    modelContents.forEach(content => {
        content.style.display = 'none';
    });

    // 显示选中的模型内容
    document.getElementById(selectedModel).style.display = 'block';
}

// FAQ 切换功能
document.addEventListener('DOMContentLoaded', function() {
    // FAQ 切换
    const faqQuestions = document.querySelectorAll('.faq-question');

    faqQuestions.forEach(question => {
        question.addEventListener('click', function() {
            const answer = this.nextElementSibling;
            const toggleIcon = this.querySelector('.toggle-icon');

            if (answer.style.display === 'block') {
                answer.style.display = 'none';
                toggleIcon.textContent = '+';
            } else {
                answer.style.display = 'block';
                toggleIcon.textContent = '-';
            }
        });
    });
}); 